Skip to content

Add deeper analysis of when a function changes a containers size - #2149

Merged
danmar merged 4 commits into
cppcheck-opensource:masterfrom
pfultz2:container-size-function
Sep 6, 2019
Merged

Add deeper analysis of when a function changes a containers size#2149
danmar merged 4 commits into
cppcheck-opensource:masterfrom
pfultz2:container-size-function

Conversation

@pfultz2

@pfultz2 pfultz2 commented Sep 6, 2019

Copy link
Copy Markdown
Collaborator

This wont just assume a function changes the container. If possible, it will inspect the function to see if it changes the container size. If the function body is not available it falls back on isVariableChangedByFunctionCall.

@danmar
danmar merged commit 27ebff7 into cppcheck-opensource:master Sep 6, 2019
jubnzv pushed a commit to jubnzv/cppcheck that referenced this pull request Nov 13, 2019
…check-opensource#2149)

* Add deeper analysis of when a function changes a containers size

* Fix issues

* Track addressOf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants